/** @type {import('next').NextConfig} */

module.exports = () => {
    const directusUrl = process.env.DIRECTUS_URL;
    const directusDomain = directusUrl ? [new URL(directusUrl).hostname] : [];

    return {
        // 'standalone' only for Docker
        // output: 'standalone',
        reactStrictMode: true,
        images: {
            domains: directusDomain,
        },
    };
};